import { request } from './request';

// 获取系统公告列表
export function PostCmsList(data) {
    return request({
        url: 'api/boss/cms/getCmsList',
        method: 'post',
        data
    })
}

// 新增系统公告内容
export function PostAddCms(data) {
    return request({
        url: "/api/boss/cms/addCms",
        method: "post",
        data
    })
}

// 更新系统公告内容
export function PostUpdataCms(data) {
    return request({
        url: "/api/boss/cms/updateCms",
        method: "post",
        data
    })
}

// 删除系统公告内容
export function DeleteCms(id) {
    return request({
        url: "/api/boss/cms/deleteCms/" + id,
        method: "delete"
    })
}